﻿/*********************弘石项目三组************************
*  功能描述：绩效管理：考核任务业务逻辑层
*  作者：刘伟康
*  时间：2021-12-13
*  修改人：刘伟康
*  修改时间：2021-12-13
*********************弘石项目三组************************/
using Hong.IRepository.IRepository_AssessmentManagement;
using Hong.Model.SysDomain.Model_AssessmentManagement;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hong.Business.Business_AssessmentManagement
{
    public class AssessmentBusiness
    {
        #region 构造器注入
        private readonly IAssessmentRepository _dal;
        public AssessmentBusiness(IAssessmentRepository dal)
        {
            _dal = dal;
        }
        #endregion

        #region 考核任务
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="assessmentList"></param>
        /// <returns></returns>
        public int AddAssessmentList(AssessmentList assessmentList)
        {
            var i = _dal.AddAssessmentList(assessmentList);
            return i;
        }
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        public List<AssessmentList> GetAssessmentList()
        {
            var list = _dal.GetAssessmentList();
            return list;
        }
        /// <summary>
        /// 修改
        /// </summary>
        /// <returns></returns>
        public int PutAssessmentList(AssessmentList assessmentList)
        {
            var i = _dal.PutAssessmentList(assessmentList);
            return i;
        }
        /// <summary>
        /// 反填
        /// </summary>
        /// <returns></returns>
        public AssessmentList GetAssessmentListFT(string id)
        {
            var list = _dal.GetAssessmentListFT(id);
            return list;
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <returns></returns>
        public int DeleteAssessmentList(string id)
        {
            var obj = _dal.DeleteAssessmentList(id);
            return obj;
        }
        /// <summary>
        /// 归档
        /// </summary>
        /// <returns></returns>
        public int PostAssessmentList(string id)
        {
            var list = _dal.PostAssessmentList(id);
            return list;
        }
        #endregion
    }
}
